package com.imti.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.ToString;

import java.io.Serializable;

/**
 * 就诊卡(Card)表实体类
 *
 * @author makejava
 * @since 2023-04-26 15:14:32
 */
@SuppressWarnings("serial")
@ToString
@TableName("card")
public class Card implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer cardId;

    private Integer patientId;

    private String cardNum;

    private String qrCode;

    private String cardCode;

    private Integer money;

    @TableField(exist = false)
    private Account account;

    @TableField(exist = false)
    private Patient patient;

    public Integer getCardId() {
        return cardId;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public Patient getPatient() {
        return patient;
    }

    public void setPatient(Patient patient) {
        this.patient = patient;
    }

    public void setCardId(Integer cardId) {
        this.cardId = cardId;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public String getCardCode() {
        return cardCode;
    }

    public void setCardCode(String cardCode) {
        this.cardCode = cardCode;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }
}

